//
//  ModelViewController.h
//  MZJ
//
//  Created by XDD on 16/6/6.
//  Copyright © 2016年 XDD. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ModelDelegate <NSObject>

@end

@interface ModelViewController : UIViewController

@property (nonatomic, weak)   id<ModelDelegate> delegate;

- (void)userInfo_data_save:(NSString *)fileName_Str responseObject:(id)responseObject;   //个人资料存本地

- (NSDictionary *)userInfo_data_get: (NSString *)fileName_Str;   //提取数据

-(NSString *)TimeStamp:(NSString *)strTime form_time:(NSString *)form_time;   //时间戳转时间

- (void)modelUrl_Http_Request:(NSString *)urlStr fileName:(NSString *)filename webview:(UIWebView *)webView;     //模板数据请求

- (void)judgmentOfTheTemplate:(NSString *)fileName_Str andUrl:(NSString *)urlStr andWebView:(UIWebView *)webView;   //存模板本地

- (void)intoTheWebViewData:(UIWebView *)webview andUrlStr:(NSString *)urlStr;

- (void)saveTheData_Url:(NSString *)Url_string andfileName:(NSString *)filename; //web存模板

//web取数据
- (NSString *)getDateFileAndTime:(NSString *)fileName;

//JS数据注入
- (void)JS_datarequestinitWebView:(NSString *)data_str andData:(NSData *)data andwebView:(UIWebView *)webView;

- (BOOL) intercept_request_HTTP:(NSString *) intercept_Str;  //拦截网络请求

- (void) skip_view: (NSString *) skip_Str andintercept_Str: (NSString *)intercept_Str;  //跳转视图

- (BOOL)valiMobile:(NSString *)mobile;        //判断手机号是否真确
@end
